package com.it.product.Controller;

import com.it.product.Service.feginService;
import com.it.product.utils.R;
import com.it.product.Entity.feginEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("product/theProduct")
public class feginController {

    @Autowired
    private feginService feginservice;

    @GetMapping(value = "/theMethod")
    public R theMethod() {

        List<feginEntity> theMethodService = feginservice.theMethod();

        return R.ok().setData(theMethodService);
    }

}
